package com.qijian.maindata.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@HeadStyle(fillForegroundColor = 22,horizontalAlignment = HorizontalAlignmentEnum.CENTER,borderTop = BorderStyleEnum.THIN,
        borderRight = BorderStyleEnum.THIN,borderLeft = BorderStyleEnum.THIN,borderBottom = BorderStyleEnum.THIN)
@HeadFontStyle(fontHeightInPoints=15)
@ContentStyle(borderBottom = BorderStyleEnum.THIN,borderLeft = BorderStyleEnum.THIN,borderRight = BorderStyleEnum.THIN,borderTop = BorderStyleEnum.THIN)
@ContentFontStyle(fontHeightInPoints = 15)
@Data
@ColumnWidth(20)
@HeadRowHeight(18)
public class ProcessOrderNewExcelVo {


    @ExcelProperty("序号")
    private Integer index;

    @ExcelProperty(value = "工单编号")
    private String workCode;

    @ExcelProperty(value = "物料编号")
    @ColumnWidth(30)
    private String itemCode;

    @ExcelProperty(value = "物料名称")
    @ColumnWidth(80)
    private String itemName;

    @ExcelProperty(value = "图号")
    private String drawingNo;

    @ExcelProperty(value = "件号")
    private String partNo;

    @ExcelProperty(value = "工序")
    private String processName;

    @ExcelProperty(value = "工序类型")
    private String processTypeName;

    @ExcelProperty(value = "数量")
    private Integer workNumber;

    @ExcelProperty(value = "定额工时")
    private BigDecimal workTime;

    @ExcelProperty(value = "定额工价")
    private BigDecimal workCost;

    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value = "派单时间")
    private Date dispatchTime;

    @ExcelProperty(value = "实际工时")
    private BigDecimal actualTimes;

    @ExcelProperty(value = "工价")
    private BigDecimal prices;

    @ExcelProperty(value = "管理人员")
    private String nickName;

    @ExcelProperty(value = "作业人员")
    private String operName;

    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value = "完工时间")
    private Date reportTime;

}
